package CAR2_RMI;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class mainClient {

	public static void main(String[] args) throws RemoteException, MalformedURLException, NotBoundException {
		HelloItf ref_obj_distant = null; 
		ref_obj_distant = (HelloItf) Naming.lookup("//miage18.miage.u-paris10.fr/HelloServer");
		System.out.println(ref_obj_distant.concat( "Hello ", "world" ));
	}
}
